class Knowledge < ApplicationRecord
  include Elasticsearch::Model
  include Elasticsearch::Model::Callbacks
  include KnowledgeMappingDefinition
  extend OrderAsSpecified

  belongs_to :project

  before_save :humanize_phrase

  private
  def humanize_phrase
    self.phrase = phrase.humanize(capitalize: false)
  end
end
